import { io } from "socket.io-client";

const socket = io("ws://localhost:3000");

btn1.onclick = function () {
  socket.emit("hello", "你好");
};

socket.on("world", (payload) => {
  console.log("world", payload);
});
